import React from 'react';
export interface JsonExportProps{
    pageJson:{},
    setPageJson:any,
    changeComponentConfig:any,
    setCurrentComponent:any,
    currentComponent:{}
}

export const JsonContext = React.createContext<JsonExportProps>({
    pageJson:{},
    setPageJson:(newjson)=>{},
    changeComponentConfig:(changeJson,pageJson)=>{},
    setCurrentComponent:(currentComponent)=>{},
    currentComponent:{}
});

export const JsonContextConsumer = JsonContext.Consumer;